
#include "PollServer.hpp"
#include <memory>
#include <string>
void Usag(std::string buffer)
{
    std::cout<<buffer<< "+ port";
}
int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        std::string buffer = argv[0];
        Usag(argv[0]);
        exit(0);
    }
    uint16_t serverport = std::stoi(argv[1]);
    EnableConsoleLogStrategy();
    std::unique_ptr<PollServer> server = std::make_unique<PollServer>(serverport);
    server->Init();
    server->Run();
}